package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;

/**
 * @author Guanxing
 * @date 2021/9/23
 */
public interface CommentService {
    //保存动态评论(返回操作之后的次数)
    Integer saveMovementComment(Comment comment);

    //保存动态评论(返回操作之后的次数)
    Integer deleteMovementComment(Comment comment);

    //查询评论列表
    PageBeanVo findCommentList(Integer pageNum, Integer pageSize, String movementId);

    //展示点赞 评论 喜欢
    PageBeanVo findMessagesByCommentType(Integer pageNum, Integer pageSize, int commentType, Long loginUserId);

    //对视频点赞
    void saveLike(Comment comment);

    //视频取消点赞
    void removeDislike(Comment comment);

    //保存评论
    void saveComment(Comment comment);

    //保存点赞
    void saveCommentLike(Comment comment);

    //查询评论列表
    PageBeanVo findVideoCommentList(Integer pageNum, Integer pageSize, String videoId);

    //取消评论点赞
    void removeComment(Comment comment);

}
